<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
        <title>Welcome to Yogette-SignIn</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="<?php echo base_url(); ?>/yogette/css/yogette.css" rel="stylesheet" type="text/css"/>
    </head>	
    <body class="body-user" >
        <div class="main-wrapper" >
            <img class="pinkcircle" src="<?php echo base_url(); ?>yogette/images/pinkCircle.jpg"/>
            <div class="Container"></div>
            <div class="menulist">
                <ul class="menulist-ul">
                    <li><img class="ice-cream" src="<?php echo base_url(); ?>yogette/images/logoIcon.jpg"/><a href="/yogette"><img src="<?php echo base_url(); ?>yogette/images/home.jpg" class="home" alt="Yogette's Homepage"/></a></li>
                </ul>
            </div>
            <div id="inner">    
                <div class="login-user-form">
                    <!-- Start the Form -->
                    <div id="login_form">
                        <h6 class="login_form-h6"> Welcome to Yogette Login Page </h6>
                        <p style="border: black 1px solid">Use the form below to login or Register</p>
                        <!--  open a form from the login function to post all inputs to -->
                        <?php echo form_open(base_url() . 'user/login'); ?>
                        <ul class="login_form-ul">
                            <li>
                                <!-- get the username input -->
                                <label>Username</label>
                                <div>
                                    <?php echo form_input(array('id' => 'username', 'name' => 'username')); ?>
                                </div>
                            </li>
                            <li>
                                <!-- get the password input -->
                                <label>Password</label>
                                <div>
                                    <?php echo form_password(array('id' => 'password', 'name' => 'password')); ?>
                                </div>
                            </li>
                            <li>
                                <!-- if the login_error is equal to TRUE from the session cookie which was done in the login() function the error message will appear -->
                                <!--  prints the validation errors from the rules -->
                                <?php
                                if ($this->session->flashdata('login_error')) {
                                    echo 'You entered an incorrect username or password';
                                }
                                echo validation_errors();
                                ?>
                            </li>
                            <!-- submit button will create an action in the form -->
                            <li> <?php echo form_submit(array('name' => 'submit'), 'Login'); ?>
                            </li>
                        </ul>
                        <!-- close the opened form to be processed -->
                        <?php echo form_close(); ?>
                        <div class="form-partial">
                            <?php echo anchor('yogette/user/reset_password', 'Forgot your Password', array('class' => 'reset_password')); ?>
                            <br/>
                            <?php echo anchor('yogette/user/register_user', 'Not a Member? Register', array('class' => 'register_user')); ?>
                        </div>
                    </div>
                    <!-- End the Form -->
                </div> <!--login-user-form end-->
                <!--<div style="border: black 1px solid" class="clear"></div>
                <div style="border: black 1px solid" id="footer">-->
            </div><!-- end inner -->
        </div><!-- end main-wrapper -->
    <!-- footer start-->
    <div class="pre-footer">   
    </div>
    <div class="footer">
        <div>
            <p class="footer-p1">yogurt is healthy</p>
        </div>
        <div>
            <p class="footer-p2">Copyright &COPY; 2010 YOGETTE.</p>
        </div>
    </div>
    <img class="post-footer" src="<?php echo base_url(); ?>yogette/blank.jpg" id="blank" name="blank" /> 
    <!-- footer ends-->
</body>
</html>
<!--End of file view_login.php 
Location: ./application/controllers/login.php -->
<!-- the login form added on 04/04/2011 -->
